package com.java.design.observer;

import com.java.design.observer.customer.CurrentConditionsDisplay;
import com.java.design.observer.customer.HeatIndexDisplay;
import com.java.design.observer.customer.WeatherData;

/**
 * @author Tony
 */
public class CustomerObserverMain {

    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();
        CurrentConditionsDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);
        HeatIndexDisplay heatIndexDisplay = new HeatIndexDisplay(weatherData);
        weatherData.setMeasurements(80,65,30.4f);
        weatherData.setMeasurements(82,70,29.2f);
        weatherData.setMeasurements(78,90,29.2f);

    }
}
